package com.example.gyt.service;

import com.example.gyt.dao.ProductOrderMapper;
import com.example.gyt.dao.UserMapper;
import com.example.gyt.pojo.ProductOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductOrderService {

    @Autowired
    private ProductOrderMapper productOrderMapper;

    public int deleteByPrimaryKey(String id){
        return productOrderMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(ProductOrder record){
        return productOrderMapper.insertSelective(record);
    }

    public ProductOrder selectByPrimaryKey(String id){
        return productOrderMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ProductOrder record){
        return productOrderMapper.updateByPrimaryKeySelective(record);
    }

    public List<ProductOrder> getAllProductOrderList(ProductOrder record){
        return productOrderMapper.getAllProductOrderList(record);
    }

    public int queryCountLike(ProductOrder record){
        return productOrderMapper.queryCountLike(record);
    }

}
